import {BaseUrl} from '@/config/net.config.js'
export function request(config){
	return new Promise((resolve,reject)=>{
		let {url,method,data} = config
		uni.request({
			url:BaseUrl+url,
			method,
			data,
			header: {},
			success: (res) => {
				// 接口code处理
				
				resolve(res)
			},
			fail:(res)=>{
				// 接口调用失败处理-
			}
		});
	})
	
}